package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.app.common.Data
import com.ruoyi.back.domain.OpenAdvertising
import com.ruoyi.back.domain.vo.UrlGoal

interface OpenAdvertisingService : IService<OpenAdvertising> {

    /**
     * 保存广告
     */
    fun saveOpenAdvertising(openAdvertising: OpenAdvertising): Data<Boolean>


    /**
     * 广告分页
     */
    fun openAdvertisingPage(openAdvertising: OpenAdvertising): Page<OpenAdvertising>


    /**
     * 批量移除广告
     */
    fun removeOpenAdvertising(advertisingIds: String): Data<Boolean>


    /**
     * 获取链接目标集合
     */
    fun urlGoalList(): Data<List<UrlGoal>>
}